﻿using OPC.DataBase.DAL;
using OPC.DataBase.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OPC.DataBase.BLL
{
    public class OPCInfoService
    {
        private OPCInfoDAL DAL = new OPCInfoDAL();

        /// <summary>
        /// OPCINFO表查询
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        public List<OPCINFO> Query(string sql)
        {
            var result = DAL.Load(sql);
            return result;
        }

        /// <summary>
        /// OPCINFO表更新
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool Change(OPCINFO entity)
        {
            var result = DAL.Update(entity);
            return result;
        }
    }
}
